package com.monkey.model.user;

import com.monkey.core.ErrorCode;

/**
 * desc:
 * auth: chenxiaobin
 * data: 2018/1/19.
 */
public class UserLoginData {
    private int code;
    private String msg;
    private String token;
    private UserData data;

    public UserLoginData(int code) {
        this(code, null, null);
    }

    public UserLoginData(int code, String token, UserData data) {
        this.code = code;
        this.msg = ErrorCode.getMsg(code);
        this.token = token;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public String getToken() {
        return token;
    }

    public UserData getData() {
        return data;
    }
}
